package com.bussiness;

import java.util.Set;

import com.bussiness.domain.Location;

/**
 * @author dninkovi
 * Main entrance for geo code logic
 *	add only simple types like long, float
 */
public interface GeoInterface {
	/**
	 * @param location
	 * @return status 
	 */
	public Long save(Location location);
	/**
	 * @param location
	 * @return status
	 */
	public boolean delete(Location location);
	/**
	 * @param location
	 * @return status
	 */
	public boolean update(Location location);	
	/**
	 * @param location
	 * @param distance
	 * @return set of locations
	 */
	public Set<Location> search(Location location, double distance);
}
